package com.gyhy.dumplings.auth.feign;

import com.gyhy.dumplings.common.utils.R;
import com.gyhy.dumplings.common.vo.SocialUser;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description:
 * @author: 光影灰翼
 * @date: 2022-09-19 19:46
 * @version: 1.0
 * @email: 978330688@qq.com
 */

@FeignClient(name = "dumplings-customer")
@Service
public interface CustomerFeignService {

    @PostMapping(value = "/customer/customer/oauth2/login")
    R oauthLogin(@RequestBody SocialUser socialUser) throws Exception;

}
